/**     
* @Title: MyGrantedAuthority.java   
* @Package me.security.example.security   
* @Description: TODO   
* @author xaoyaoyao
* @date 2017年8月23日 下午4:41:17
*/
package me.security.example.security;

import org.springframework.security.core.GrantedAuthority;

/**
 * @ClassName: MyGrantedAuthority
 * @Description: TODO
 * @author xaoyaoyao
 * @date 2017年8月23日 下午4:41:17
 * 
 */
public class MyGrantedAuthority implements GrantedAuthority {

	private static final long serialVersionUID = 1523688396792367896L;

	private String permissionUrl;
	
	private String method;

	public String getPermissionUrl() {
		return permissionUrl;
	}

	public void setPermissionUrl(String permissionUrl) {
		this.permissionUrl = permissionUrl;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public MyGrantedAuthority(String permissionUrl, String method) {
		this.permissionUrl = permissionUrl;
		this.method = method;
	}

	@Override
	public String getAuthority() {
		return this.permissionUrl + ";" + this.method;
	}
}
